/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseUrl: 域名地址
 * routerMode: 路由模式
 * baseImgPath: 图片存放地址
 *
 */
let baseUrl = ''
let routerMode = 'history'
// let baseImgPath = 'http://images.cangdu.org/'
let appID = '' // 优云宝id
let wxQRImage = ''

console.log(process.env)
if (process.env.NODE_ENV === 'development') {
  baseUrl = 'http://localhost:8002'// useless
} else {
  baseUrl = 'http://www.yuejilife.com:8081'// useless
}

if (process.env.SITE_CONFIG === 'liwu') {
  appID = '3059654772'
  wxQRImage = require('../assets/img/service_wx.jpg')
} else if (process.env.SITE_CONFIG === 'yingxiaolipin') {
  appID = '3043234088'
  wxQRImage = require('../assets/img/service_wx_subsite.jpg')
}
export {
  baseUrl,
  routerMode,
  appID,
  wxQRImage
  // baseImgPath
}
